﻿var xweb = {
    title: '内容管理系统',
    logo: 'logo.png',
    baseUrl: 'http://localhost:3619/',
    isRefresh: false,//定时器
    enabelNotification: false,//是否启用通知
    enableShortcut: true,//是否启用快捷方式
    imageManagerListSize: 20, /* 每次列出文件数量 */

};
var jframe = {
    baseUrl: 'http://localhost:3619/',
    getUrl: function (relativeUrl) {
        return this.baseUrl + relativeUrl;
    },
    getUrlWithTimespan: function (relativeUrl) {
        return this.baseUrl + relativeUrl + "?t=" + new Date().getTime();
    }
}

function relativeUrl(relativeUrl) {
    return xweb.baseUrl + relativeUrl;
}

//获取url地址参数
function GetQueryString(name) {
    // console.log('getQueryString is begin');
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
    var r = window.location.search.substr(1).match(reg);
    if (r != null) return unescape(r[2]); return null;
}
